/**
 * 对象复制
 * params {Object} obj 被复制对象
 * params {Object} obj2 复制后对象
 */
export const objCopy = (obj,obj2)=>{
    const entries = Object.entries(obj);
    // console.log(entries);
    entries.forEach(([key,val])=>{
        obj2[key] = val
        // if(obj.children){
        //     obj2[key] = objCopy(obj[key],obj2[key])
        // }
    })
    // console.log(obj2);
    return obj2
}